package com.cloud.api.domain.user;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cloud.api.myenum.AvatarTypeEnum;
import com.cloud.core.entity.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 头像表
 * </p>
 *
 * @author haohaibo
 * @since 2024-07-09
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_avatar")
@Schema(name = "Avatar", description = "头像表")
public class Avatar extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    @TableId("id")
    private String id;

    @Schema(description = "头像地址")
    @TableField("url")
    private String url;

    @Schema(description = "类别")
    @TableField("type")
    private AvatarTypeEnum type;
}